package com.gopay.remote.fundcps.model;

import com.gopay.common.cipher.utils.SensitiveInfoUtils;
import com.gopay.common.domain.BaseEntity;

import java.util.Date;

/**
 * @ClassName FundbGopayOpenAcc
 * @description 商财通开户信息
 * @author xinj.xue on 2017/04/05 10:10:39
 */
public class FundcGopayOpenAcc extends BaseEntity {

    private static final long serialVersionUID = -9187073907098789711L;

    private Long keyId;

    private String custId;

    private String merchantId;

    private String agreementSignNo;

    private String acctId;

    private String openStatus;

    private String appSheetSerialNo;

    private Integer fundCustNo;

    private Long moneyAccount;

    private String taAccountId;

    private String applicationPath;

    private String transactionAccountId;

    private String corpName;

    private String delegationPath;

    private String corpShortName;

    private String corpCertType;

    private String corpCertNo;

    private String corpAddr;

    private String corpZip;

    private String corpCertMergePath;

    private String corpCertTaxPath;

    private String corpCertOrgnoPath;

    private String corpCertBusinessPath;

    private String legalPersonName;

    private String legalPersonCertType;

    private String legalPersonCertNo;

    private String legalPersonCertPath;

    private String agentName;

    private String agentCertType;

    private String agentCertNo;

    private String agentLinkTel;

    private String agentEmail;

    private String agentCertPath;

    private Date createdTs;

    private Date lastUpdTs;

    private String procFinishTs;

    private String failureReason;

    public Long getKeyId() {
        return keyId;
    }

    public void setKeyId(Long keyId) {
        this.keyId = keyId;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId == null ? null : custId.trim();
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId == null ? null : merchantId.trim();
    }

    public String getAgreementSignNo() {
        return agreementSignNo;
    }

    public void setAgreementSignNo(String agreementSignNo) {
        this.agreementSignNo = agreementSignNo == null ? null : agreementSignNo.trim();
    }

    public String getAcctId() {
        return acctId;
    }

    public void setAcctId(String acctId) {
        this.acctId = acctId == null ? null : acctId.trim();
    }

    public String getOpenStatus() {
        return openStatus;
    }

    public void setOpenStatus(String openStatus) {
        this.openStatus = openStatus == null ? null : openStatus.trim();
    }

    public String getAppSheetSerialNo() {
        return appSheetSerialNo;
    }

    public void setAppSheetSerialNo(String appSheetSerialNo) {
        this.appSheetSerialNo = appSheetSerialNo == null ? null : appSheetSerialNo.trim();
    }

    public Integer getFundCustNo() {
        return fundCustNo;
    }

    public void setFundCustNo(Integer fundCustNo) {
        this.fundCustNo = fundCustNo;
    }

    public Long getMoneyAccount() {
        return moneyAccount;
    }

    public void setMoneyAccount(Long moneyAccount) {
        this.moneyAccount = moneyAccount;
    }

    public String getTaAccountId() {
        return taAccountId;
    }

    public void setTaAccountId(String taAccountId) {
        this.taAccountId = taAccountId == null ? null : taAccountId.trim();
    }

    public String getApplicationPath() {
        return applicationPath;
    }

    public void setApplicationPath(String applicationPath) {
        this.applicationPath = applicationPath == null ? null : applicationPath.trim();
    }

    public String getTransactionAccountId() {
        return transactionAccountId;
    }

    public void setTransactionAccountId(String transactionAccountId) {
        this.transactionAccountId = transactionAccountId == null ? null : transactionAccountId.trim();
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName == null ? null : corpName.trim();
    }

    public String getDelegationPath() {
        return delegationPath;
    }

    public void setDelegationPath(String delegationPath) {
        this.delegationPath = delegationPath == null ? null : delegationPath.trim();
    }

    public String getCorpShortName() {
        return corpShortName;
    }

    public void setCorpShortName(String corpShortName) {
        this.corpShortName = corpShortName == null ? null : corpShortName.trim();
    }

    public String getCorpCertType() {
        return corpCertType;
    }

    public void setCorpCertType(String corpCertType) {
        this.corpCertType = corpCertType == null ? null : corpCertType.trim();
    }

    public String getCorpCertNo() {
        return corpCertNo;
    }

    public void setCorpCertNo(String corpCertNo) {
        this.corpCertNo = corpCertNo == null ? null : corpCertNo.trim();
    }

    public String getCorpAddr() {
        return corpAddr;
    }

    public void setCorpAddr(String corpAddr) {
        this.corpAddr = corpAddr == null ? null : corpAddr.trim();
    }

    public String getCorpZip() {
        return corpZip;
    }

    public void setCorpZip(String corpZip) {
        this.corpZip = corpZip == null ? null : corpZip.trim();
    }

    public String getCorpCertMergePath() {
        return corpCertMergePath;
    }

    public void setCorpCertMergePath(String corpCertMergePath) {
        this.corpCertMergePath = corpCertMergePath == null ? null : corpCertMergePath.trim();
    }

    public String getCorpCertTaxPath() {
        return corpCertTaxPath;
    }

    public void setCorpCertTaxPath(String corpCertTaxPath) {
        this.corpCertTaxPath = corpCertTaxPath == null ? null : corpCertTaxPath.trim();
    }

    public String getCorpCertOrgnoPath() {
        return corpCertOrgnoPath;
    }

    public void setCorpCertOrgnoPath(String corpCertOrgnoPath) {
        this.corpCertOrgnoPath = corpCertOrgnoPath == null ? null : corpCertOrgnoPath.trim();
    }

    public String getCorpCertBusinessPath() {
        return corpCertBusinessPath;
    }

    public void setCorpCertBusinessPath(String corpCertBusinessPath) {
        this.corpCertBusinessPath = corpCertBusinessPath == null ? null : corpCertBusinessPath.trim();
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName == null ? null : legalPersonName.trim();
    }

    public String getLegalPersonCertType() {
        return legalPersonCertType;
    }

    public void setLegalPersonCertType(String legalPersonCertType) {
        this.legalPersonCertType = legalPersonCertType == null ? null : legalPersonCertType.trim();
    }

    public String getLegalPersonCertPath() {
        return legalPersonCertPath;
    }

    public void setLegalPersonCertPath(String legalPersonCertPath) {
        this.legalPersonCertPath = legalPersonCertPath == null ? null : legalPersonCertPath.trim();
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName == null ? null : agentName.trim();
    }

    public String getAgentCertType() {
        return agentCertType;
    }

    public void setAgentCertType(String agentCertType) {
        this.agentCertType = agentCertType == null ? null : agentCertType.trim();
    }

    public String getAgentEmail() {
        return agentEmail;
    }

    public void setAgentEmail(String agentEmail) {
        this.agentEmail = agentEmail == null ? null : agentEmail.trim();
    }

    public String getAgentCertPath() {
        return agentCertPath;
    }

    public void setAgentCertPath(String agentCertPath) {
        this.agentCertPath = agentCertPath == null ? null : agentCertPath.trim();
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getProcFinishTs() {
        return procFinishTs;
    }

    public void setProcFinishTs(String procFinishTs) {
        this.procFinishTs = procFinishTs == null ? null : procFinishTs.trim();
    }

    public String getFailureReason() {
        return failureReason;
    }

    public void setFailureReason(String failureReason) {
        this.failureReason = failureReason == null ? null : failureReason.trim();
    }

    //modify by liuyu, 20170424, 商财通开户信息敏感字段加密-----start----->
    public String getLegalPersonCertNo() { return SensitiveInfoUtils.smartDecryptWithCheck(legalPersonCertNo); }

    public void setLegalPersonCertNo(String legalPersonCertNo) {
        this.legalPersonCertNo = SensitiveInfoUtils.smartEncryptWithCheck(legalPersonCertNo);
    }

    public String getAgentCertNo() {
        return SensitiveInfoUtils.smartDecryptWithCheck(this.agentCertNo);
    }

    public void setAgentCertNo(String agentCertNo) {
        this.agentCertNo = SensitiveInfoUtils.smartEncryptWithCheck(agentCertNo);
    }

    public String getAgentLinkTel() {
        return SensitiveInfoUtils.smartDecryptWithCheck(this.agentLinkTel);
    }

    public void setAgentLinkTel(String agentLinkTel) {
        this.agentLinkTel = SensitiveInfoUtils.smartEncryptWithCheck(agentLinkTel);
    }
    //modify by liuyu, 20170424, 商财通开户信息敏感字段加密------end------>
}